Postprocessor step

The Postprocessor step allows the application to further process the resulting record set after the entire extraction workflow has been executed, using JavaScript.
For example, a post-processor can export all or parts of the data to a CSV file which can then be used to generate daily reports of the Connect Workflow processes that use this data mapping configuration (see Data mapping configurations).
A post-processor could also write the results of the extraction process to a file and immediately upload that file to a Workflow process.

The Postprocessor step can contain any number of post-processors.

Adding a post-processor

To add a post-processor:

  • Select the Postprocessor step on the Steps pane.

  • On the Step properties pane, under Postprocessor, click the Add button .

  • Under Postprocessor definition, add the script. Postprocessor tasks must be written in JavaScript (see Using scripts in the DataMapper and DataMapper Scripts API).

Configuring the Postprocessor step

For an explanation of the settings for post-processors, see Postprocessor step properties.

Testing postprocessors

Post-processors are not executed automatically while designing the data mapping workflow. The reason for this is that post-processors can potentially be quite lengthy operations that would hinder the automatic refresh of the display whenever anything is changed in the data mapping workflow.
In order to test post-processors you must execute them manually by clicking the Apply button in the Post-processor step properties (see Postprocessor step properties).

Note that in the DataMapper and Designer, only one data record is active at any given time. Therefore, the changes made by the post-processes are only visible on the current data record (i.e. the one currently displayed). If you change data records, you must press the Apply button on the Postprocessor step once more.
In order to test a case with multiple records you must either use the data mapping configuration in a print job through the Designer or in the Execute Data Mapping task in Workflow so that all records will be processed by the Postprocessor step.